package com.wo.cloud.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wo.cloud.admin.dto.SysUserDto;
import com.wo.cloud.admin.entity.SysUser;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2021/3/8 10:04
 * Description:
 */
public interface ISysUserService extends IService<SysUser> {

    // 根据用户名获取用户
    SysUser getUserByUsername(String username);


    // 根据 token 解析用户
    SysUser getUserByToken();

    // 根据 token 获取用户角色信息
    SysUserDto getRoleByToken();
}
